package com.bit.forumdemo.controller.test_controller;

import com.bit.forumdemo.mapper.test_mapper.TestMapper;
import com.bit.forumdemo.pojo.user_pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

//@RestController
//@RequestMapping("test")
public class TestController {

//    @Autowired
    private TestMapper testMapper;

//    @RequestMapping("getStr")
    public String getStr(){
        List<User> list = testMapper.getUser();
        return "test";
    }

}
